import request from "@/utils/request";

// 获取商品列表
export function getCafeList(obj) {
  return request({
    baseURL: window.getIps + "/4SCAFE/Coffee/getCafeList.action",
    method: "post",
    params: obj
  });
}

// 商品新增/编辑
export function saveCafe(obj) {
    return request({
      baseURL: window.getIps + "/4SCAFE/Coffee/saveCafe.action",
      method: "post",
      params: obj
    });
  }

// 批量复制
export function copyServDetail(obj) {
  return request({
    baseURL: window.getIps + "/4SCAFE/Coffee/copyServDetail.action",
    method: "post",
    params: obj
  });
}

// 门店下拉列表
export function getSelectShop(obj) {
  return request({
    baseURL: window.getIps + "/4SCAFE/ServShop/getSelectShop.action",
    method: "post",
    params: obj
  });
}

// 商品分类下拉列表
export function getSelectCafeType(obj) {
  return request({
    baseURL: window.getIps + "/4SCAFE/ServShop/getSelectCafeType.action",
    method: "post",
    params: obj
  });
}

// 商品上/下架
export function cafeUptoDown(obj) {
    return request({
      baseURL: window.getIps + "/4SCAFE/Coffee/cafeUptoDown.action",
      method: "post",
      params: obj
    });
  }

// 商品分类列表
export function cafeTypeList(obj) {
    return request({
      baseURL: window.getIps + "/4SCAFE/Coffee/cafeTypeList.action",
      method: "post",
      params: obj
    });
  }

// 商品分类启用/停用
export function cafeTypeUptoDown(obj) {
    return request({
      baseURL: window.getIps + "/4SCAFE/Coffee/cafeTypeUptoDown.action",
      method: "post",
      params: obj
    });
  }

// 商品分类新增/编辑
export function saveCafeType(obj) {
    return request({
      baseURL: window.getIps + "/4SCAFE/Coffee/saveCafeType.action",
      method: "post",
      params: obj
    });
  }